# -*- coding:utf-8 -*-


from functools import reduce


def fun(x):
    return x < 0


res = filter(lambda x: x < 0, [1, -2, 3, 5, -2, 7, -9])
print(list(res))
